<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>选择器权重</title>
		<!-- 选择器权重越高，选中几率越大 -->
		<style>
			*{ /*权值 0  很容易被覆盖*/
				color: #2cee39;
				background: #d938ee;
			}
			div{/*权值 1*/
				color: #eec765;
				background: #703dee;
			}
			.d1{ /*权值 10*/
				color: #93eeb4;
				background: #3aee26;
			}
			div.d1{/*选择器权值之和 权值*/
				color: #93eeb4;
				background: #3aee26;
			}
			body div.d1{/*权值 12*/
				font-size: 25px;
				color: #2cee39;
				background: #ee0e7a;
			}
			#d1{/*权值100*/
				font-size: 15px;
				color: #2cee39;
				background: #ee0e7a;
			}
			div#d1{/*权值101*/
				font-size: 20px;
				color: #eebc91;
				background: #0ed1ee;
			}
			div#d1:hover{/*权值111*/
				font-size: 25px;
				color: #2cee39;
				background: #ee0e7a;
			}
		</style>
	</head>
	<body>
		<div class="d1" id="d1" style="color: red;">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deleniti eveniet voluptate itaque, saepe amet sunt possimus odio harum cumque nam facilis quis eaque fugit, earum modi veritatis autem, laboriosam eius.</div>
	</body>
</html>